package com.lizheng.yunservice.travel.controller;

import com.lizheng.yunservice.common.page.TableDataInfo;
import com.lizheng.yunservice.travel.doamin.vo.CulturalVideoVO;
import com.lizheng.yunservice.travel.model.CulturalVideoPageDTO;
import com.lizheng.yunservice.travel.service.CulturalVideoService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/vtp/app/cultural")
public class CulturalVideoController {

    @Resource
    private CulturalVideoService culturalVideoService;

    @PostMapping("/videoPage")
    public TableDataInfo<CulturalVideoVO> videoPage(@RequestBody CulturalVideoPageDTO dto) {
        return culturalVideoService.videoPage(dto);
    }
}